import {Component, OnInit} from '@angular/core';
import {HttpClient} from '@angular/common/http';

@Component({
  selector: 'app-user-rate',
  templateUrl: './user-rate.component.html',
  styleUrls: ['./user-rate.component.css']
})
export class UserRateComponent implements OnInit {
  movies: any;

  constructor(private http: HttpClient) {
    this.http.get(`/movie/user/rate/records`).subscribe(res => this.movies = res);
  }

  ngOnInit() {
  }

}
